<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
      <tbody>
      <logic:iterate id="hrList" name="companyForm" property="rifList" indexId="i">
      <logic:iterate id="jobs" name="hrList" property="joblistSet">
	      <bean:define id="jobId" name="jobs" property="id"/>
      <tr class="title"><% String hasStyle = "class=\"light\""; if(i % 2 == 1) { hasStyle = "";}  %>
        <td <%=hasStyle %>><a style="cursor:pointer">
	         <bean:write name="jobs"  property="jobname"/>
	    &nbsp;</a></td>
        <td <%=hasStyle %>>
	         <bean:write name="hrList" property="companyName" />
	      </td>
        <td <%=hasStyle %>>
        		<bean:write name="jobs"  property="jobaddress"/>
	        </td>
	    <td <%=hasStyle %>><bean:define id="createDate" name="hrList" property="createDate" />
	              <% String cDate = createDate.toString(); cDate = cDate.substring(0,10); out.print(cDate); %></td>
        <td <%=hasStyle %>><p class="module_up_down"><img src="../images/plus.gif" width="19" height="20" /></p></td>
      </tr>
      <tr class="description">
        <td colspan="8" class="light">
        	<div>
            	<p>职位描述：
	         <bean:write name="jobs"  property="jobname"/>
	      &nbsp;<br />
	         <bean:write name="jobs"  property="summary"/>
	      &nbsp;  </p>
	      	<table width="420px">
	      		<tr>
	      			<td width="120px" align="left">工作经验：<bean:write name="jobs"  property="workExperience"/></td>
	      			<td align="left">学历要求：<bean:define id="sh" name="jobs" property="schoolage"/>
	           <% String shs = CodeMap.getEduNameByKey(sh.toString()); %><%=shs %>&nbsp;</td>
	      		</tr>
	      		<tr>
	      			<td align="left" width="120px">招聘人数：<bean:write name="jobs"  property="jobnumber"/>名</td>
	      			<td align="left">月薪范围：<bean:write name="jobs"  property="jobpay"/></td>
	      		</tr>
	      		<tr>
	      			<td align="left" width="120px">发布日期：<% out.print(cDate); %></td>
	      			<td align="left">截止日期：<bean:define id="endDate" name="jobs"  property="enddate"/>
	      			<% String eDate = endDate.toString(); eDate = eDate.substring(0,10); out.print(eDate); %></td>
	      		</tr>
	      	</table>
            </div>        </td>
        </tr>
      	</logic:iterate>
      </logic:iterate>
    </tbody>